package com.ithao.service.impl;


import com.ithao.dao.DictDao;
import com.ithao.pojo.Dict;
import com.ithao.service.DictService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description ：数据字段业务实现类
 * @version: 1.0
 */
@Slf4j
@Service
public class DictServiceImpl implements DictService {
    @Autowired
    private DictDao dictDao;

    @Override
    public List<Dict> selectListByType(Integer typeId) {
        return dictDao.selectListByType(typeId);
    }

    @Override
    public List<Dict> findList() {
        List<Dict> dictList = dictDao.selectList();
        log.info("查找所有城市 cityList :{}", dictList);
        return dictList;
    }
}
